// Copyright (c) 2009 Hypirinha contributers
// This program is made available under the terms of the MIT License.
package org.hypirinha.html.output.features;

import org.hypirinha.html.output.PrintAdapter;

import java.io.PrintWriter;
import java.nio.charset.Charset;

public interface Encoding extends PrintAdapter.Feature {
    public static final Encoding UTF_8 = new NamedEncoding("UTF-8");
    public static final Encoding UTF_16 = new NamedEncoding("UTF-16");

    public static final Encoding systemDefault = new Encoding() {
        public Charset getCharset() {
            return Charset.defaultCharset();
        }
    };

    Charset getCharset();
}